Skip to content

Conversation

@labkey-bpatel
Copy link
Contributor

@labkey-bpatel labkey-bpatel commented Feb 10, 2026

Rationale

The related PRs adds Microsoft Graph as an alternative mail transport using OAuth2 authentication. Since Dumbster is an SMTP-only mail recorder, it should only start when SMTP is the active transport.

Related Pull Requests

Changes

  • Start Dumbster when SMTP is the active transport.

public void doStartup(ModuleContext moduleContext)
{
if (AppProps.getInstance().isMailRecorderEnabled())
if (MailHelper.getActiveProvider() instanceof SmtpTransportProvider && AppProps.getInstance().isMailRecorderEnabled())
Copy link
Member

@labkey-tchad labkey-tchad Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add this check to DumbsterManager.start to prevent it from being started by other means (e.g. DumbsterController.SetRecordEmailAction). It should also log some sort of error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants